Repository navigation
Fix the Windows IPA build handoff - #182
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The stage key still fingerprints SPIRV-Cross from PATH rather than the executable selected by SPIRV_CROSS, allowing compiler changes to reuse stale shader libraries without compiler checks.
1 open issue
What changed in this PR
Fixes several handoffs in the Qt frontend’s experimental Windows IPA build path. End-to-end support still depends on upstream fixes and manual setup.
Changes:
- Fixes linker and translator probes, passes portable tool paths to child processes, and updates the toolchain callback signature.
- Validates image-backed RomFS data and packages it as
romfs.img. - Adds targeted regression tests and documents reported device results and remaining limitations.
| File | Description |
|---|---|
frontend-qt/tests/test_win.py |
Adds probe, environment, translator, and callback regression coverage. |
frontend-qt/README.md |
Clarifies experimental status, reported gameplay, and manual prerequisites. |
frontend-qt/nspb_qt/win/toolchain.py |
Removes the undefined environment reference from the link probe. |
frontend-qt/nspb_qt/win/shim.py |
Resolves the translator’s toolchain import and propagates selected tool paths. |
frontend-qt/nspb_qt/win/driver.py |
Accepts the upstream toolchain callback arguments. |
frontend-qt/nspb_qt/win/build_app.py |
Supports RomFS image validation and IPA packaging. |
Review effort: Balanced
|
|
||
| # ---------------------------------------------------------------- the shader cache key | ||
| def toolchain_probe(): | ||
| def toolchain_probe(repo_=None, env=None): |
|
Thanks for working through the Windows handoffs. Could you rebase onto current |
The Windows toolchain probe ran `spirv-cross --revision` from PATH while build_env() passes an explicit SPIRV_CROSS. Switching the selected compiler could therefore leave the shader-stage key unchanged and reuse libraries from the previous compiler. Resolve the selected executable through the upstream spirv_cross(repo, env) resolver and return it as a files entry, so the stage key hashes the compiler that is actually used. Add a regression test that changing SPIRV_CROSS (or the executable's contents) changes the key. Also keep a linker that cannot start as a reported link-probe result, and make the new upstream source-reading and uv-home tests portable on Windows (UTF-8 reads, USERPROFILE).
f4559d0 to
ecdc92e
Compare
|
Thanks for the Windows fixes and for adding coverage for the selected SPIRV-Cross fingerprint. I reviewed the current head The RomFS image path also depends on the Windows |
|
Re-ran the three checks on 1. Windows toolchain-lock setup
2.
3. Build and device
|
|
Thanks, the code changes look right to me. I checked them against current What I checked and agree with:
Three things before this can go in:
Smaller point: the Without seedds/nxnative#591 the build still stops at |
build_app.py: move the RomFS marker check, the romfs/romfs.img name and the pack skip list into small helpers and cover them with RomfsPackTest, which runs on every platform. README says the game started, without a frame rate. shim.py: spirv-cross env line on two lines.

What and why
The experimental Windows IPA build stopped at several handoffs: the link probe referenced an undefined environment, the translator shim referenced an undefined module, the upstream toolchain callback gained arguments, portable .NET and SPIRV-Cross paths were not passed to child processes, and image-backed RomFS data was treated as a folder.
Fix those handoffs, validate the RomFS marker through the image reader, and embed an image as
romfs.img. Preserve an explicitly selected SPIRV-Cross. The README records the observed device result and the remaining manual steps; this does not claim the unmodified frontend is ready for all games.Two smaller changes came in with the same checkout and are not part of the handoff fix: the uv test now passes
USERPROFILEthrough explicitly, and tworead_textcalls nameencoding='utf-8'.The image-reader and shader-label fixes needed by the build are proposed upstream in seedds/nxnative#591 and must be synced before this becomes an end-to-end path on an unmodified checkout. The successful local build also used manually materialized SDK links, an updated
dmsh_chain.lockwith a regeneratedDMSH_CHAIN, and a two-line declaration ofCMMotionManager.deviceMotionBodyfor the iPhoneOS26.0 SDK the Windows toolchain ships; those machine-specific changes are not part of this PR.Checked
test_win.pyonecdc92efrom a clean worktree: 133 tests, 2 failures, 3 errors, 2 skipped. After merging currentmaininto this branch (0ac7699): 131 tests, 1 failure, 11 errors, 3 skipped. The remaining failure istest_metal_tt_has_no_windows_tool, which fails identically onmainon this machine (the installed Metal Developer Tools shipmetal-tt.exe), so it is not caused by this change;test_check_prereqs_raises_with_a_reportno longer fails on currentmain. The errors are local: PySide6QtCorefails to load on this machine, and the unmerged engine tree is not synced in that run. The same machine also failstest_i18n_detect(3) andtest_ascii_temp(1) on an unmodifiedmain.0100D9F01D474000) IPA built on Windows with this branch, Support RomFS image readers on Windows seedds/nxnative#591, the lock update and the SDK shim installed and launched on an iPhone Air running iOS 27.0.1; Play started the game, which showed 60 FPS on the app's own frame-rate counter (no frame-time measurements were taken), with correct button mappings.swift testand Mac visual QA were not run: no Mac was available and this change does not alter the UI.Scope